# Contributor: Robert Sacks <robert@sacks.email>
# Maintainer: Robert Sacks <robert@sacks.email>
pkgname=py3-testrepository
_pyname=testrepository
pkgver=0.0.20
pkgrel=4
pkgdesc="A repository of test results"
url="https://launchpad.net/testrepository"
arch="noarch"
license="Apache-2.0 OR BSD-3-Clause"
options="!check" # Test suite issues
depends="python3 py3-fixtures py3-subunit py3-testtools"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3.8/site-packages/testrepository/tests
}

sha512sums="df14500e2b27b6f39d9d4c4f42961efd63dfe25186e561eb1678952a8ab9311f17c36b78819fea33e0ac879c47a33d45c31ff58be017609c8a6157905ee712d6  testrepository-0.0.20.tar.gz"
